# 这是一个 CMakeLists.txt 文件
cmake_minimum_required(VERSION 3.15)
project(app)
# set(SRC main.cpp print.cpp)
# aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC)
file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
# set(EXECUTABLE_OUTPUT_PATH /home/zzx/linux-code/code29-cmake)
include_directories(${PROJECT_SOURCE_DIR}/include) 
set(CMAKE_CXX_STANDARD 11)
# add_executable(print ${SRC})
# set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
# 动态库
# add_library(print SHARED ${SRC}) 
# 静态库
# add_library(print STATIC ${SRC})
link_libraries(print) 
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib)
add_executable(output ${SRC})